.class public final Lcom/estrongs/fs/impl/usb/fs/ntfs/c;
.super Ljava/lang/Object;
.source "DataRun.java"

# interfaces
.implements Lcom/estrongs/fs/impl/usb/fs/ntfs/d;


# instance fields
.field private final a:J

.field private final b:I

.field private c:Z

.field private final d:I

.field private e:J


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(JIZIJ)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->c:Z

    .line 3
    iput-wide p1, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->a:J

    .line 4
    iput p3, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->b:I

    .line 5
    iput-boolean p4, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->c:Z

    .line 6
    iput p5, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->d:I

    .line 7
    iput-wide p6, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->e:J

    return-void
.end method

.method public constructor <init>(Les/u50;IJJ)V
    .locals 5

    .line 8
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 9
    iput-boolean v0, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->c:Z

    .line 10
    new-instance v1, Lcom/estrongs/fs/impl/usb/fs/ntfs/s;

    invoke-direct {v1, p1, p2}, Lcom/estrongs/fs/impl/usb/fs/ntfs/s;-><init>(Lcom/estrongs/fs/impl/usb/fs/ntfs/s;I)V

    .line 11
    invoke-virtual {v1, v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/s;->l(I)I

    move-result p1

    and-int/lit8 p2, p1, 0xf

    const/4 v2, 0x4

    ushr-int/2addr p1, v2

    add-int v3, p2, p1

    const/4 v4, 0x1

    add-int/2addr v3, v4

    .line 12
    iput v3, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->d:I

    .line 13
    iput-wide p3, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->e:J

    const/4 p3, 0x3

    const/4 p4, 0x2

    if-eqz p2, :cond_4

    if-eq p2, v4, :cond_3

    if-eq p2, p4, :cond_2

    if-eq p2, p3, :cond_1

    if-ne p2, v2, :cond_0

    .line 14
    invoke-virtual {v1, v4}, Lcom/estrongs/fs/impl/usb/fs/ntfs/s;->j(I)I

    move-result v3

    iput v3, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->b:I

    goto :goto_0

    .line 15
    :cond_0
    new-instance p1, Ljava/lang/IllegalArgumentException;

    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    const-string p4, "Invalid length length "

    invoke-virtual {p3, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 16
    :cond_1
    invoke-virtual {v1, v4}, Lcom/estrongs/fs/impl/usb/fs/ntfs/s;->h(I)I

    move-result v3

    iput v3, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->b:I

    goto :goto_0

    .line 17
    :cond_2
    invoke-virtual {v1, v4}, Lcom/estrongs/fs/impl/usb/fs/ntfs/s;->g(I)I

    move-result v3

    iput v3, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->b:I

    goto :goto_0

    .line 18
    :cond_3
    invoke-virtual {v1, v4}, Lcom/estrongs/fs/impl/usb/fs/ntfs/s;->l(I)I

    move-result v3

    iput v3, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->b:I

    goto :goto_0

    .line 19
    :cond_4
    iput v0, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->b:I

    :goto_0
    if-eqz p1, :cond_9

    if-eq p1, v4, :cond_8

    if-eq p1, p4, :cond_7

    if-eq p1, p3, :cond_6

    if-ne p1, v2, :cond_5

    add-int/2addr p2, v4

    .line 20
    invoke-virtual {v1, p2}, Lcom/estrongs/fs/impl/usb/fs/ntfs/s;->d(I)I

    move-result v0

    goto :goto_1

    .line 21
    :cond_5
    new-instance p2, Ljava/lang/IllegalArgumentException;

    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    const-string p4, "Unknown cluster length "

    invoke-virtual {p3, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p2

    :cond_6
    add-int/2addr p2, v4

    .line 22
    invoke-virtual {v1, p2}, Lcom/estrongs/fs/impl/usb/fs/ntfs/s;->c(I)I

    move-result v0

    goto :goto_1

    :cond_7
    add-int/2addr p2, v4

    .line 23
    invoke-virtual {v1, p2}, Lcom/estrongs/fs/impl/usb/fs/ntfs/s;->b(I)I

    move-result v0

    goto :goto_1

    :cond_8
    add-int/2addr p2, v4

    .line 24
    invoke-virtual {v1, p2}, Lcom/estrongs/fs/impl/usb/fs/ntfs/s;->f(I)I

    move-result v0

    goto :goto_1

    .line 25
    :cond_9
    iput-boolean v4, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->c:Z

    :goto_1
    if-nez v0, :cond_a

    const-wide/16 p1, 0x0

    goto :goto_2

    :cond_a
    int-to-long p1, v0

    add-long/2addr p1, p5

    .line 26
    :goto_2
    iput-wide p1, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->a:J

    return-void
.end method


# virtual methods
.method public a(J[BIIILcom/estrongs/fs/impl/usb/fs/ntfs/t;)I
    .locals 15
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    move/from16 v0, p5

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->b()J

    move-result-wide v1

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->d()I

    move-result v3

    .line 4
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->c()J

    move-result-wide v4

    int-to-long v6, v0

    add-long v6, p1, v6

    const-wide/16 v8, 0x1

    sub-long/2addr v6, v8

    const/4 v8, 0x0

    cmp-long v9, p1, v4

    if-gtz v9, :cond_3

    cmp-long v4, v1, v6

    if-lez v4, :cond_0

    goto :goto_2

    :cond_0
    cmp-long v4, p1, v1

    if-gez v4, :cond_1

    sub-long v1, v1, p1

    long-to-int v2, v1

    sub-int/2addr v0, v2

    .line 5
    invoke-static {v0, v3}, Ljava/lang/Math;->min(II)I

    move-result v0

    mul-int v2, v2, p6

    add-int v1, p4, v2

    .line 6
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->a()J

    move-result-wide v2

    move v13, v1

    move-wide v10, v2

    goto :goto_0

    :cond_1
    sub-long v1, p1, v1

    long-to-int v2, v1

    sub-int/2addr v3, v2

    .line 7
    invoke-static {v0, v3}, Ljava/lang/Math;->min(II)I

    move-result v0

    .line 8
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->a()J

    move-result-wide v3

    int-to-long v1, v2

    add-long/2addr v1, v3

    move/from16 v13, p4

    move-wide v10, v1

    .line 9
    :goto_0
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->f()Z

    move-result v1

    if-eqz v1, :cond_2

    mul-int v1, v0, p6

    add-int/2addr v1, v13

    move-object/from16 v2, p3

    .line 10
    invoke-static {v2, v13, v1, v8}, Ljava/util/Arrays;->fill([BIIB)V

    goto :goto_1

    :cond_2
    move-object/from16 v2, p3

    move-object/from16 v9, p7

    move-object/from16 v12, p3

    move v14, v0

    .line 11
    invoke-virtual/range {v9 .. v14}, Lcom/estrongs/fs/impl/usb/fs/ntfs/t;->a(J[BII)V

    :goto_1
    return v0

    :cond_3
    :goto_2
    return v8
.end method

.method public a()J
    .locals 2

    .line 1
    iget-wide v0, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->a:J

    return-wide v0
.end method

.method public b()J
    .locals 2

    .line 1
    iget-wide v0, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->e:J

    return-wide v0
.end method

.method public c()J
    .locals 4

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->b()J

    move-result-wide v0

    invoke-virtual {p0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->d()I

    move-result v2

    int-to-long v2, v2

    add-long/2addr v0, v2

    const-wide/16 v2, 0x1

    sub-long/2addr v0, v2

    return-wide v0
.end method

.method public d()I
    .locals 1

    .line 1
    iget v0, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->b:I

    return v0
.end method

.method public e()I
    .locals 1

    .line 1
    iget v0, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->d:I

    return v0
.end method

.method public f()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->c:Z

    return v0
.end method

.method public toString()Ljava/lang/String;
    .locals 4

    const/4 v0, 0x3

    new-array v0, v0, [Ljava/lang/Object;

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->f()Z

    move-result v1

    if-eqz v1, :cond_0

    const-string v1, "sparse"

    goto :goto_0

    :cond_0
    const-string v1, "data"

    :goto_0
    const/4 v2, 0x0

    aput-object v1, v0, v2

    const/4 v1, 0x1

    invoke-virtual {p0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->b()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    aput-object v2, v0, v1

    const/4 v1, 0x2

    invoke-virtual {p0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->c()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    aput-object v2, v0, v1

    const-string v1, "[%s-run vcn:%d-%d]"

    invoke-static {v1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
